package com.tourlaid.mamagerment.mapper

import com.tourlaid.mamagerment.entity.Shop
import org.apache.ibatis.annotations.Param

/**
 * Created by xiaoyongge on 2017/7/19.
 */

interface ShopMapper {

    fun getById(id: Long): Shop?;

    fun insert(record: Shop);

    fun queryForList(): List<Shop>?

    fun getByName(@Param("shopName") shopName: String?): Shop?

    fun update(newShop: Shop)

    fun queryByIdList(@Param("idList") idList: List<Long?>): List<Shop>

    fun delete(@Param("id") id: Long?, @Param("editor") editor: Long?)

    fun  queryAllShop(): List<Shop>

}